package com.nian.trancation.tc.a.controller;

import com.nian.trancation.tc.a.model.TableTestA;
import com.nian.trancation.tc.a.service.TableTestAService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 用途：
 * 开发：zhangmj
 * 日期：2020/4/15 0015 11:59
 */
@RestController
@RequestMapping("lcn/a")
public class TableTestAController {

    @Autowired
    private TableTestAService tableTestAService;

    @PostMapping("save")
    public TableTestA save(@RequestBody TableTestA model){
        return tableTestAService.save(model);
    }

    @PostMapping("delete")
    public void delete(@RequestBody TableTestA model){
        tableTestAService.delete(model);
    }
}
